package learn.serviceB.controller;

import io.swagger.annotations.Api;
import learn.serviceB.feign.ParentRemote;
import lombok.extern.slf4j.Slf4j;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@Api
@Slf4j
@RestController
@RequestMapping("/student")
public class StudentController {
	
	@Autowired
	private ParentRemote parentRemote;
	
	@PostMapping("/getStudent")
	public void getStudent(){
		log.info("===========学生==============");
		parentRemote.getParent();
	}

}
